package de.java.shortys.utils.jtable;

import javax.swing.JTable;
import javax.swing.table.TableColumn;

public final class JTableUtils {

	public static final void setColumnHidden(JTable table, TableColumn column) {
		column.setMaxWidth(0);
		column.setMinWidth(0);
		column.setPreferredWidth(0);
		column.setResizable(false);
		table.getTableHeader().resizeAndRepaint();
	}

	private JTableUtils() {
		// Empty
	}
}
